@use '../name.scss' as *;
@use '../src/var.scss' as *;

$component: 'MailSend';

@include buildView($component) {
  height: inherit;
  width: 100%;
  text-align: left;
  color: $bg-color-light;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  @include buildWrap($component, 'left') {
    height: inherit;
    width: 80%;
    @include build($component, 'tools') {
      height: 120px;
      background-color: $bg-color-dark-deep;
      display: flex;
      align-content: space-around;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      @include build('tool', 'item') {
        width: 100%;
        height: 40px;
        padding: 12px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .title {
          color: $force-color;
          font-size: 2vh;
          font-weight: 700;
          width: 10em;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
    .preview {
      height: calc(90vh - 120px);
      width: 100%;
      overflow: scroll;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }
    .send {
      height: 10vh;
      width: 100%;
      background-color: $bg-color-dark-deep;
      display: flex;
      align-content: center;
      justify-content: space-around;
      align-items: center;
      .el-button {
        width: 40%;
      }
    }
  }
  @include buildWrap($component, 'right') {
    height: inherit;
    width: 20%;
    background-color: $bg-color-dark-deep;
    @include build($component, 'connectTitle') {
      width: 100%;
      height: 5vh;
      font-size: 2.3vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    @include build($component, 'connectList') {
      height: calc(100% - 15vh);
      width: 100%;
      padding: 0 8px;
      box-sizing: border-box;
      overflow-y: scroll;
      @include build('connectList', 'item') {
        height: 5vh;
        font-size: 2vh;
        overflow: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
        box-sizing: border-box;
        .el-icon {
          cursor: pointer;
          transition: all 0.4s ease-in-out;
          margin: 0 2px;
          &:hover {
            color: $force-color;
          }
        }
      }
    }
    @include build($component, 'connectBottom') {
      height: 10vh;
      width: 100%;
      display: flex;
      align-content: center;
      justify-content: center;
      align-items: center;
    }
  }
}